package com.cinc.ebc.sd.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.sd.entity.SdDispatchLoadDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.sd.model.SdDispatchLoadDetailOutModel;
import com.cinc.ebc.sd.model.SdDispatchLoadDetailStockModel;
import com.cinc.ebc.sd.vo.SdDispatchLoadDetailPage;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 装车明细
 * @Author: jeecg-boot
 * @Date:   2022-09-25
 * @Version: V1.0
 */
public interface SdDispatchLoadDetailMapper extends BaseMapper<SdDispatchLoadDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);

	public List<SdDispatchLoadDetail> selectByMainId(@Param("mainId") String mainId);

	public List<SdDispatchLoadDetailStockModel> selectStockByMainId(@Param("mainId") String mainId);

	List<SdDispatchLoadDetailOutModel> selectOutList(Page<SdDispatchLoadDetailOutModel> page,
													 @Param("detailPage") SdDispatchLoadDetailPage detailPage,
													 @Param("permissionSql") String permissionSql);
}
